package com.jinghua.treatment.wechat.entity;

import sun.security.krb5.internal.Ticket;

import java.util.Date;

public class EventXML extends ResponseXML{
    private String Event;
    private String EventKey;
    private String Ticket;

    public EventXML(){}

    public EventXML(String toUserName, String fromUserName, String createTime, String msgType, String event, String eventKey) {
        ToUserName = toUserName;
        FromUserName = fromUserName;
        CreateTime = createTime;
        MsgType = msgType;
        Event = event;
        EventKey = eventKey;
    }

    public EventXML(String toUserName, String fromUserName) {
        ToUserName = toUserName;
        FromUserName = fromUserName;
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    public String getEvent() {
        return Event;
    }

    public void setEvent(String event) {
        Event = event;
    }

    public String getEventKey() {
        return EventKey;
    }

    public void setEventKey(String eventKey) {
        EventKey = eventKey;
    }

    public String getTicket() {
        return Ticket;
    }

    public void setTicket(String ticket) {
        Ticket = ticket;
    }

    /**
     * 组装回复用的文本消息
     * @return
     */
    public String xml(){
       /* return "<xml><ToUserName><![CDATA["+this.ToUserName+"]]></ToUserName><FromUserName><![CDATA["+this.FromUserName+"]]>" +
                "</FromUserName><CreateTime>"+new Date().getTime()+"</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA["+this.Content+"]]>" +
                "</Content></xml>";*/
       return "";
    }
}
